﻿<%@ Page Title="" Language="C#" 
MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<CI.Caja.BE.BE_Personal>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Modificar Personal
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Modificar Personal</h2>

     <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Edit", "Personal", FormMethod.Post))
       {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Personal</legend>
            
            <div class="editor-label">
               Código
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IdPersonal, new { disabled = "disabled" })%>
                <%: Html.ValidationMessageFor(model => model.IdPersonal) %>
            </div>

            <div class="editor-label">
                N&uacute;mero DNI
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NumDNI)%>
                <%: Html.ValidationMessageFor(model => model.NumDNI)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre) %>
                <%: Html.ValidationMessageFor(model => model.Nombre) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Apellido) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Apellido) %>
                <%: Html.ValidationMessageFor(model => model.Apellido) %>
            </div>
            
            <div class="editor-label">
               Cargo
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoCargo", (IEnumerable<SelectListItem>)TempData["cargos"])%>
            </div>
            
            <p>
                <input type="submit" value="Modificar" />
            </p>
        </fieldset>

    <% } %>
</asp:Content>

